package com.alibaba.algo.utils;


import ma.glasnost.orika.MapperFacade;
import ma.glasnost.orika.MapperFactory;
import ma.glasnost.orika.impl.DefaultMapperFactory;

/**
 * 对象转换
 *
 * @author : WangZhiPan
 * @date : 2021/9/24 10:51
 */
public class ConverterUtil {
    private static final MapperFacade mapper;

    static {
        MapperFactory mapperFactory = new DefaultMapperFactory.Builder().build();
        mapper = mapperFactory.getMapperFacade();
    }

    public static MapperFacade getInstance() {
        return mapper;
    }

}
